﻿<UserControl x:Class="SMIL.Client.WPXAP.InfoTool.InfoTool"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="330" Height="300">
    <Grid x:Name="LayoutRoot" Background="#CC343434">       
        <StackPanel Margin="0,0,2,0">
            <TextBlock x:Name="PART_Subtitle" Text="Reports->General"  FontSize="12" Margin="8,4,8,4" FontWeight="Bold" Foreground="#FFCDCDCD" HorizontalAlignment="Center" />
            <TextBlock x:Name="PART_Title" Text="Title" FontSize="13.3" Margin="8,4,8,4" FontWeight="Bold" HorizontalAlignment="Center" Foreground="White" />
  
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" >
                <Button x:Name="PART_Openbutton" Content="Open" FontSize="12" Width="100" Margin="4" Click="PART_Openbutton_Click" />
                <Button x:Name="PART_Selectbutton" Content="Select" FontSize="12" Width="100" Margin="4" Visibility="Collapsed" Click="PART_Selectbutton_Click"/>                
            </StackPanel>
            <ComboBox x:Name="PART_Views" Height="30" Margin="14,10,14,0" FontSize="12" SelectionChanged="PART_Views_SelectionChanged" />
            <ListBox x:Name="PART_Details" Margin="8,10" Width="300" Height="150" FontSize="12" >
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding fieldName}" FontWeight="Bold" Width="100" Margin="0,0,5,0" />
                            <TextBlock Text="{Binding fieldValue}" />
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </StackPanel>        
    </Grid>
</UserControl>
